module("NetWork.Action.UpdateGroupSmAction ", package.seeall)

local NetCmdActionBase = require("NetWork.Action").NetCmdActionBase

UpdateGroupSmAction = NetCmdActionBase:new()

function UpdateGroupSmAction:Action(bytes)
    local UpdateGroupSm = require("Protol.groupMessage_pb").UpdateGroupSm()
    UpdateGroupSm:ParseFromString(bytes)
   
    if UpdateGroupSm.code ~= 0 then
        local UIWinMgr = require("UI.UIWinMgr").UIWinMgr
        UIWinMgr:OpenErrorNotice(UpdateGroupSm.code)
        return
    end
    local ClubModule = require("Module.ClubModule").ClubModule
    ClubModule.UpdateGroupSm(UpdateGroupSm)
end

require("NetWork.NetCmdSet").CmdSet[2019] = UpdateGroupSmAction --注册处理对象